package com.easylinkin.linkappapi.grid.models.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import site.morn.validate.group.Update;

import javax.validation.Valid;
import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.List;

/**
 * 网格信息表
 *
 * @author 
 * @since 2024-05-15
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class GridQrDTO implements Serializable{
    private static final long serialVersionUID=1L;

    @NotNull(message = "网格ID不能为空", groups = { Update.class })
    @ApiModelProperty(value = "网格ID", name = "id")
    private Integer id;

    /**
     * 二维码
     */
    @NotBlank(message = "二维码不能为空")
    @ApiModelProperty(value = "二维码", name = "qrCode")
    private String qrCode;

}
